<h2>Manajemen Edit Profil</h2>


    <?php if(isset($updated)) : ?>

        Data Anda berhasil diperbarui.<br/>

    <?php echo anchor("admin/home", "Kembali ke profil", array('style' => 'font-weight: bold; color:#990000')) ?>

    <?php else: ?>

        Silahkan mengisi kembali data diri Anda.<br/>


    <div class="box_edit_akun">
        <div class="root_edit_akun">

            <b class="xtop"><b class="x1"></b><b class="x2"></b><b class="x3"></b><b class="x4"></b></b>
            <div class="edit_akun">

            <?php echo form_open('admin/edit_profil', array('id' => 'form1')); ?>
            <?php echo validation_errors(); ?>
                <div class="form_row_regis">
                    <span>Nama Admin</span>
                    <input type="text" name="input_nama" value="<?php echo $user_data['nama_admin'] ?>"/>
                </div>
                <div class="form_row_regis">
                    <span>Email</span>
                    <input type="text" name="input_email" value="<?php echo $user_data['email'] ?>"/>
                </div>
                <div class="form_row_regis">
                    <span>No Telp</span>
                    <input type="text" name="input_telp" value="<?php echo $user_data['telp'] ?>"/>
                </div>
                <div class="form_row_regis">
                    <span>Usia</span>
                    <input type="text" name="input_usia" value="<?php echo $user_data['usia'] ?>"/>
                </div>
                <div class="form_row_regis">
                    <span>Tempat Lahir</span>
                    <input type="text" name="input_tempatlahir" value="<?php echo $user_data['tempat_lahir'] ?>"/>
                </div>
                <div class="form_row_regis">
                    <span>Tanggal Lahir</span>
                    <input type="text" name="input_tgllahir" value="<?php echo $user_data['tgl_lahir'] ?>"/>
                </div>
                <div class="form_row_regis">
                    <span>Alamat</span>
                    <input type="text" name="input_alamat" value="<?php echo $user_data['alamat'] ?>"/>
                </div>
                <div class="form_row_ket_profil">
                    <p style="color: red">Semua kolom harus diisi</p>
                </div>
                <div class="form_row_regis_submit">
                    <input class="submit" type="submit" name="submit" value="Simpan" >
                </div>


            <?php echo form_close(); ?>
            </div>
            <b class="xbottom"><b class="x4"></b><b class="x3"></b><b class="x2"></b><b class="x1"></b></b>

        </div>
    </div>

    <?php endif; ?>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>